/*
 * Copyright 2000-2020 ALPHA LAB.Inc All Rights Reserved.
 */
package com.alphalab.moonlight.demo.impl.trans;

import org.springframework.beans.BeanUtils; 
import com.alphalab.framework.domain.AbstractValueObjectTransfer;
import com.alphalab.moonlight.demo.dao.model.AirlineFlight;
import com.alphalab.moonlight.demo.service.model.AirlineFlightVO; 

/**
 * AirlineFlightTransfer.
 * @author allen 
 * @version 1.0.0 2018年3月6日
 */
public class AirlineFlightTransfer extends AbstractValueObjectTransfer<AirlineFlightVO, AirlineFlight> {

	/* (non-Javadoc)
	 * @see com.alphalab.framework.domain.AbstractValueObjectTransfer#
	 * toPO(com.alphalab.framework.domain.AbstractValueObject)
	 */
	@Override
	public AirlineFlight toPO(final AirlineFlightVO paramVO) {
		if (paramVO == null) {
			return null;
		}
		final AirlineFlight airlineFlight = new AirlineFlight();
		BeanUtils.copyProperties(paramVO, airlineFlight);
		return airlineFlight;
	}

	/* (non-Javadoc)
	 * @see com.alphalab.framework.domain.AbstractValueObjectTransfer
	 * #toVO(com.alphalab.framework.domain.BaseEntity)
	 */
	@Override
	public AirlineFlightVO toVO(final AirlineFlight paramPO) {
		if (paramPO == null) {
			return null;
		}
		final AirlineFlightVO airlineFlightVO = new AirlineFlightVO();
		BeanUtils.copyProperties(paramPO, airlineFlightVO);
		return airlineFlightVO;
	}

}
